package app.demo.model;

import java.util.Date;

import javax.persistence.Entity;

import org.springleaf.security.model.User;

/**
 * 用户
 * 
 * @author leaf
 */
@Entity
public class Customer extends User {

	private static final long serialVersionUID = 1L;

	/**
	 * 真实姓名
	 */
	private String trueName;
	/**
	 * 年龄
	 */
	private Integer age;
	/**
	 * 电话
	 */
	private String tel;
	/**
	 * 联系地址
	 */
	private String address;
	/**
	 * 出生日
	 */
	private Date bornDate;

	/**
	 * 录入时间
	 */
	private Date inputTime;

	public Customer() {
	}

	public Customer(String userName, String password, String role) {
		this.setUsername(userName);
		this.setPassword(password);
		this.setRole(role);
	}

	public String getTrueName() {
		return trueName;
	}

	public void setTrueName(String trueName) {
		this.trueName = trueName;

	}

	public Integer getAge() {
		return age;
	}

	public void setAge(Integer age) {
		this.age = age;

	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;

	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;

	}

	public Date getBornDate() {
		return bornDate;
	}

	public void setBornDate(Date bornDate) {
		this.bornDate = bornDate;

	}

	public Date getInputTime() {
		return inputTime;
	}

	public void setInputTime(Date inputTime) {
		this.inputTime = inputTime;

	}

}
